﻿function Validate() {

    var obj_txtBranchName = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtBranchName_I');
    var obj_txtBranchCode = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtBranchCode_I');

    if (obj_txtBranchCode.value == "") {
        alert('Kindly Specify Branch Code.')
        obj_txtBranchCode.focus();
        return false;
    }
    if (obj_txtBranchName.value == "") {
        alert('Kindly Specify Branch Name.')
        obj_txtBranchName.focus();
        return false;
    }    

    return true;
}